using UnityEngine;

public class TargetCollector
{
	public GameObject[] Targets;

	public bool IsActive;

	public TargetCollector(string tag)
	{
		SetTarget(tag);
	}

	public void Clear()
	{
		Targets = null;
	}

	public void SetTarget(string tag)
	{
		Targets = GameObject.FindGameObjectsWithTag(tag);
	}
}
